﻿<UserControl x:Class="Daphne.Controls.RecentFileListControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"                                                 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="180">
    <Grid MinHeight="500">
        <Grid.RowDefinitions>
            <RowDefinition Height="25"/>
            <RowDefinition Height="*" />            
        </Grid.RowDefinitions>
        <WrapPanel Grid.Row="0" VerticalAlignment="Center">
            <TextBlock FontWeight="Bold" TextWrapping="Wrap" loc:Translate.Uid="CTR_RecentlyUsedFiles" Text="{loc:Translate}"></TextBlock></WrapPanel>
        <ListBox x:Name="uxRecentFiles" Grid.Row="1" ItemsSource="{Binding}">
            <ListBox.Style>
                <Style TargetType="ListBox">
                    <Setter Property="Background" Value="White"/>
                </Style>                
            </ListBox.Style>                        
            <ListBox.ItemContainerStyle>
                <Style TargetType="ListBoxItem">
                    <Setter Property="Background" Value="White" />
                    <Setter Property="Foreground" Value="Black" />                            
                </Style>
            </ListBox.ItemContainerStyle>
        </ListBox>            
    </Grid>
</UserControl>
